Repository navigation
feat(app-shell): Setup › Installed Apps shows app updates, folds modules under their app, and leaves the developer doors to Studio - #34815
Conversation
…lumns Work in progress; not yet type-checked or tested. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
…door Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
…h doors Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
…r Source keeps it Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
…strator columns Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
…stalled-apps-updates
… two edited suites Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
…s importer calls the hook Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
… the Update link does not wrap Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
…ules folded under it Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WGufziunkXbDT7wUWqfmWz
|
repo:objectstack#3 · os-support-ai · session_01WGufzhshTXCAmv9KJXRZkB 席位核对 · L1 (seat 3, L1-a) · 2026-11-17T11:44ZL1: ACCEPT All six card items are built on the Installed Apps door only, inside the amended surface. The badge and the version rule are imported from Must-fixNone. Should-fix
Readings that hold
Notes
|
|
repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz Landing · area o3-C · head 8778a5f
L1's one should-fix (the module toggle's |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 44080618620 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz Re-queued once, head unchanged (8778a5f): the queue build 44080618620 failed on |
|
repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz Re-queue, head unchanged (8778a5f): GitHub still reported the PR "in the merge queue" after 6948163615, but no queue build ran for it after 12:20Z, so it was converted to draft (dropping the stale queue entry) and is readied and armed again here. Triage confirmed it was an inherited bystander of #34829 (closed); main is green. |
|
repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz Held (converted to draft) under the merge standard the maintainer set at 12:44Z (「只对 nit 级采用」): a PR lands with open findings only when every remaining one is a nit. L1 6947097720 left one should-fix (the module toggle's |
|
repo:objectstack#3 · os-support-ai · session_01WGufziunkXbDT7wUWqfmWz Correction to the comment just above: the hold did not take. The PR had already merged from the queue (see merged_at) before the draft conversion ran, so it is merged with L1 6947097720's one should-fix open (the module toggle's |
Requested by Yibo Wang · project thread
Fixes #34722
Clause-②: yes (widening — locale keys only)
Metadata-protocol: none
维护者速读
?source=marketplace时的绘制,Studio 包页(同一组件、不带 source)不变;市场读不到时列表照常显示并加一行说明,绝不显示"已是最新"。回滚=回退本 PR,无数据或接口变化。ui/packages/app-shell/src/views/metadata-admin/PackagesPage.tsx的readUpdateTargets(何时算"读不到")与appOfModule(模块归属哪个应用);console/marketplace/__tests__/marketplaceNamespaceBoundary.test.ts新增的 hook-gated 门;PackagesPage.installedAppsUpdates-34722.test.tsx。pnpm --dir ui exec vitest run packages/app-shell/src/views/metadata-admin/PackagesPage.installedAppsUpdates-34722.test.tsx,预期 16 passed。What changes
Setup › Installed Apps is the
developer:packagescomponent opened with?source=marketplace(Setup'snav_marketplace_installed); Studio › Packages is the same component with no params. The view is told apart by the existinginstalledAppsViewflag, so Studio's door is untouched.UpdateAvailableBadge("Update available → v6.4.0") plus "Upgrade", linked to/system/marketplace/PACKAGE_ID(the route the Details action already opens); a header line "N apps have a newer version in the marketplace."type: 'module'package that declares exactly one installed app (same source) inmanifest.dependenciesis folded under that app's line; a toggle (aria-expanded, aria-controls) shows it. This is the same tie the server'sisDisableableAppModulereads. A module declaring two apps, or none in view, stays its own line. A search that hits a module shows it under its app.How the update is decided: for each app line that has an install-ledger entry,
getMarketplacePackage(packageId)is read once. The latest version ispackage.latest_version?.version ?? versions[0]?.version, and the badge shows only whenupdateTarget(installed, latest)(the marketplace pages' own rule) answers a version. A 404 means not listed (no badge, no note). Any other failure, orisMarketplaceEnabled()false, means unavailable (the note). Modules are never asked about.The namespace gate (decision Q1 = A on the claim amendment): the badge's words live only in the lazy
marketplacenamespace.InstalledAppUpdateCellcallsuseMarketplaceNamespace(). While the read or the namespace is loading, the cell holds a skeleton placeholder, never an empty "up to date" cell. When the namespace is ready, it drawsUpdateAvailableBadge. When the namespace fails, it still shows "→ v6.4.0" and the Upgrade link.marketplaceNamespaceBoundary.test.tsgains one declared hook-gated door (UpdateAvailableBadge.tsxdrawn only fromPackagesPage.tsx) and asserts through the TypeScript AST that the importer imports and calls the hook. The eager language pack does not grow: this branch has 0 diff lines underui/packages/i18n/src/locales/.Strings: nine keys added to the lazy
studionamespace in en and zh (engine.packages.installedApps.col.update,.upgrade,.updatesSummaryOne,.updatesSummary,.updatesUnavailable,.modulesOne,.modules,.showModules,.hideModules).Docs:
content/docs/deployment/marketplace-handbook.mdxsaid Installed Apps lists "each package of a suite as its own row", which this change makes false. Two sentences now say one line per app, with modules folded under it.Not done here, as the card says: the upgrade flow itself (the link lands on the existing marketplace page), plans and permissions, and the packaged-actions page (#34724).
Narrowing: the developer doors leave Setup › Installed Apps
Import, New Package, the platform-packages switch and the Source chip's "Show all" are no longer drawn when the page is opened with
?source=marketplace(Q2 = A for the chip). Studio › Packages keeps all of them. These tests pin it:PackagesPage.installedAppsUpdates-34722.test.tsx› "the two doors (objectstack#34722)":PackagesPage.source-12675.test.tsx:?source=marketplaceshows only the marketplace rows, with no Show all that clears it" (replaces the old pin, which asserted Show all on this door)?source=shows only its rows, and Show all clears it"Measured live: the developer door is the same component opened without
source(Import 1, New Package 1, platform switch 1, columns including ID and Scope). The Studio app shell itself is NOT MEASURED live, because the fixture runtime does not serve the Studio app ("This app can't be opened").Tests
All on
ef65831e5cunless noted; the pushed head53503c6a26is the same tree (only a commit message was reworded).PackagesPage.installedAppsUpdates-34722.test.tsx(new, 16 tests): badge plus href plus click; up to date gives no badge and no summary; 404 gives no badge and no note; counts two apps; 502 gives the note with rows still listed; marketplace disabled gives no catalog read plus the note; apps only are asked; zh badge "有可用更新 → v6.4.0"; namespace loading gives a placeholder; namespace failed gives "→ v6.4.0" plus the link; HotCRM one line, with four modules on demand; two-apps, orphan and code-app modules stay unfolded; search "cpq" shows the module under its app; plus the three door tests above.PackagesPage.source-12675.test.tsx: one pin replaced, one added (24 tests).marketplaceNamespaceBoundary.test.ts: newit.each"%s is drawn only by importers that ask for the namespace themselves (objectstack#34722)" (6 tests).os-verify-lock.sh -c "pnpm --dir ui exec vitest run --maxWorkers=2 PackagesPage.installedAppsUpdates-34722 PackagesPage.source-12675 marketplaceNamespaceBoundary",VERDICT command-exit 0, Test Files 3 passed (3), Tests 46 passed (46).a175016b49): PackagesPage., ResourceListPage., Create/EditPackageDialog,console/marketplace/__tests__, spec-symbol-parity, the product-neutral ratchet, the studio and marketplace namespace suites, and en/zh and all-locales parity. 98 files, 1047/1048 passed; the one failure was the source-12675 pin the Q2 decision changes, since fixed.pnpm --filter @object-ui/app-shell type-check(tsc and tsconfig.test.json), TC_EXIT=0 on8fc8e215a5(ef65831e5cadds docs only).Ablations (each red, each restored to blob == HEAD with `git diff HEAD` empty)
Run with
node scripts/ablation-replace.mjs(anchor hit x1 to x0, auto-restore, blob verified against HEAD5356cfce1ec3of PackagesPage.tsx). These are vitest-from-source suites, so nodist/leg applies.updateTarget(...)replaced bynull(badge)appOfModulereturns null (no folding)useMarketplaceNamespace()call removed (boundary suite)Acceptance notes
examples/app-multi-package, whose servedcom.example.multi.ordersrow is{"type":"module","dependencies":{"com.example.multi.core":"^1.0.0"}}: one module under one app. HotCRM's four-module shape is pinned only in the unit suite. HotCRM itself is NOT MEASURED live.source: marketplaceat 6.2.0, with an install-ledger entrypkg_multi_coreand the catalog answering 6.4.0 / 6.2.0 / 502. Everything else came from the real backend./apps/setup/component/developer/packages, nosource) at a 1400 px viewport, the Actions column is clipped by the table's overflow. This is unchanged by this PR (that table branch is untouched). Reach: live screenshot of that URL at 1400x900. Reported to the seat to file. Dedupe words: packages table actions column clipped, overflow, Studio packages.Verification
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackatef65831e5c(same tree as head53503c6a26): 71 families derived, all run locally, each exit code below.--ranreconciliation: see details.check-eager-closure-budget(afterpnpm --filter '@object-ui/console^...' buildandpnpm --filter @object-ui/console build, lockVERDICT command-exit 0): i18n-locale-en 60.2 KB / 60.5 KB ceiling (headroom 0.4 KB); the aggregate eager closure is 1893.2 KB / 2431.6 KB. The headroom is the existing headroom: this branch changes no file underui/packages/i18n/src/locales/.node scripts/pm/overlap-check.mjs --branch=claude/issue-34722-installed-apps-updates:VERDICT clean exit 0before each push.test:repo, repo-wide lint, the full lint-workflow farm. Full dogfood is not owed (no!in the title, no narrowing arm on Clause-②).Derived gate families, 71 of 71, exit codes
Run on
ef65831e5c.53503c6a26(the pushed head) is the same tree,0607e32a0d; only the docs commit message was reworded.node scripts/check-adr-0087-registration.mjs --base origin/main· exit 0node scripts/check-adr-0087-registration.mjs --self-test· exit 0node scripts/check-adr-links.mjs· exit 0node scripts/check-adr-links.mjs --self-test· exit 0node scripts/check-changeset-no-major.mjs --base origin/main· exit 0node scripts/check-closing-keyword-parity.mjs· exit 0node scripts/check-closing-keyword-parity.mjs --self-test· exit 0node scripts/check-comment-mask-corpus.mjs· exit 0node scripts/check-doc-route-spelling.mjs --advisory· exit 0node scripts/check-doc-route-spelling.mjs --self-test· exit 0node scripts/check-docs-section-name.mjs· exit 0node scripts/check-docs-section-name.mjs --self-test· exit 0node scripts/check-empty-changeset.mjs --base origin/main· exit 0node scripts/check-empty-changeset.mjs --self-test· exit 0node scripts/check-sdui-manifest.mjs· exit 0node scripts/check-sdui-manifest.mjs --self-test· exit 0node scripts/check-section-landing-index.mjs· exit 0node scripts/check-section-landing-index.mjs --self-test· exit 0node scripts/ci/plan-test-core-shards.mjs --self-test· exit 0node scripts/ci/snapshot-next.mjs --self-test· exit 0node scripts/pm/check-governed-queue-guard.mjs --self-test· exit 0node scripts/pm/release-rehearsal-clone.mjs --self-test· exit 0node scripts/release-pending-publish.mjs --self-test· exit 0pnpm --dir ui exec vitest run scripts/· exit 0pnpm --filter @objectstack/lint run check:doc-formula-expressions· exit 0pnpm --filter @objectstack/lint run check:doc-security-posture· exit 0pnpm --filter @objectstack/spec run check:docs· exit 0pnpm --filter @objectstack/spec run check:duration-unit-keys· exit 0pnpm --filter @objectstack/spec run check:empty-state· exit 0pnpm --filter @objectstack/spec run check:error-code-provenance· exit 0pnpm --filter @objectstack/spec run check:liveness· exit 0pnpm --filter @objectstack/spec run check:skill-examples· exit 0pnpm --filter @objectstack/spec run check:strictness-ledger· exit 0pnpm --filter @objectstack/spec run check:variant-docs· exit 0pnpm --filter @objectstack/spec run check:yaml-examples· exit 0pnpm check:adr-anchors· exit 0pnpm check:changeset-gate-self-tests· exit 0pnpm check:ci-filter-parity· exit 0pnpm check:closed-ceremony-text· exit 0pnpm check:corpus-claim-drift· exit 0pnpm check:cross-package-test-inputs· exit 0pnpm check:dispatcher-error-vocabulary· exit 0pnpm check:doc-anchors· exit 0pnpm check:doc-authoring· exit 0pnpm check:doc-frontmatter· exit 0pnpm check:docs-audit-scope· exit 0pnpm check:docs-redirects· exit 0pnpm check:docs-single-h1· exit 0pnpm check:docs-spec-enumerations· exit 0pnpm check:docs-transcript-drift· exit 0pnpm check:driver-memory-census· exit 0pnpm check:engine-double-contract· exit 0pnpm check:gitlink-declared· exit 0pnpm check:nul-bytes· exit 0pnpm check:published-files· exit 0pnpm check:published-readme-links· exit 0pnpm check:query-options-erasure· exit 0pnpm check:react-page-adapter-contract· exit 0pnpm check:refd-timer-probe· exit 0pnpm check:registry-log-declared· exit 0pnpm check:rest-log-spy-declared· exit 0pnpm check:role-word· exit 0pnpm check:skill-identifier-liveness· exit 0pnpm check:test-source-alias· exit 0pnpm check:tier-file-adoption· exit 0pnpm check:type-check-coverage· exit 0pnpm check:type-check-debt· exit 0pnpm check:undeclared-dep-imports· exit 0pnpm check:vendor-version-stamps· exit 0pnpm check:watch-hint-literal· exit 0pnpm check:where-matcher· exit 0pnpm --dir ui exec vitest run scripts/(under the lock): Test Files 171 passed, 2 skipped (173); Tests 5077 passed, 2 skipped (5079).dispatch-gates --ran: "Run reconciliation — 71 derived, 71 run, 0 NOT-MEASURED, 0 UNRUN", exit 0.node scripts/check-nul-bytes.mjs: OK, exit 0.Live readings (Chromium, fixture runtime plus Console dev server)
Fixture:
examples/app-multi-package, booted withobjectstack dev --seed-admin --fresh; Console vite dev server proxied to it. These readings were taken from the working tree that was committed as8fc8e215a546 s later, with the Console serving source.ef65831e5cadds docs only./apps/com.objectstack.setup/system/marketplace/pkg_multi_core; the click lands on that path; summary "1 app has a newer version in the marketplace."; one catalog read,/api/v1/marketplace/packages/pkg_multi_core; headers Name, Version, Status, Source, Update, Actions; Import 0, New Package 0, platform switch 0, Source chip 0.data-module-of="com.example.multi.core".source): Import 1, New Package 1, platform switch 1; headers Name, ID, Version, Scope, Status, Source, Actions; orders row 1; catalog reads 0.Generated by Claude Code